<script setup lang="ts">
    import { defineProps } from 'vue';

    import BasicInfo from "@/views/Main/User/Center/Render/BasicInfo/index.vue";
    import Settings from  "@/views/Main/User/Center/Render/Settings/index.vue";

    const componentMap = {
        0: BasicInfo,
        1: Settings
    }

    defineProps({
        index: {
            type: Number,
            required: true
        }
    });
</script>
<template>
    <component :is="(componentMap as any)[index]" />
</template>